<?php
namespace catchAdmin\apipatient\validate;

use think\Validate;

class MydValidate extends Validate
{
    protected $rule = [
        'personnelType' => 'require',
        'projectId' => 'require',
        'putChanel' => 'require',
    ];

    protected $message = [
        'personnelType.require' => '缺少personnelType参数',
        'projectId.require' => '缺少projectId参数',
        'putChanel.require' => '缺少putChanel参数',
    ];

    protected $scene = [
        'get_hzd_myd_list' => ['personnelType'],
        'push_hzd_questionnaire' => ['projectId','putChanel']
    ];  
}